import request from '/@/utils/request';


export function queryList(params:object){
    return request({
        url: '/sysUser/list',
        method: 'get',
        params:params
    })
}


/**
 * 添加用户
 * @param data
 */
export function addUser(data:Object){
    return request({
        url: '/sysUser',
        method: 'post',
        data:data
    });
}

/**
 * 修改用户
 * @param data
 */
export function updateUser(data:Object){
    return request({
        url: '/sysUser',
        method: 'put',
        data:data
    });
}



/**
 * 重置密码
 * @param data
 */
export function resetPwd(data:Object){
    return request({
        url: '/sysUser/resetPwd',
        method: 'put',
        data:data
    });
}



/**
 * 删除
 * @param data
 */
export function delUser(params:any){
    return request({
        url: '/sysUser/'+params,
        method: 'delete'
    });
}


